# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: team/kde <bribbers@disroot.org>

# The group tag is just to easily find this APKBUILD by some scripts for automation
# group=kde-applications
pkgname=ksirk
pkgver=23.08.4
pkgrel=0
pkgdesc="A computerised version of the well known strategic board game Risk"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://apps.kde.org/en-gb/ksirk/"
license="GPL-2.0-or-later AND GFDL-1.2-only"
makedepends="
	extra-cmake-modules
	kcompletion5-dev
	kconfig5-dev
	kconfigwidgets5-dev
	kcoreaddons5-dev
	kcrash5-dev
	kdoctools5-dev
	ki18n5-dev
	kio5-dev
	knewstuff5-dev
	kwallet5-dev
	kwidgetsaddons5-dev
	kxmlgui5-dev
	libkdegames-dev
	qca-dev
	qt5-qtbase-dev
	qt5-qtmultimedia-dev
	qt5-qtsvg-dev
	samurai
	"
_repo_url="https://invent.kde.org/games/ksirk.git"
source="https://download.kde.org/stable/release-service/$pkgver/src/ksirk-$pkgver.tar.xz"
subpackages="$pkgname-doc $pkgname-lang"
options="!check" # No tests

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DWITH_JABBER_SUPPORT=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
f780c07eeae667b3c3b9c9af1dc011dc2704eb28f9773c24020c34d985c7c3f825d9b0c8bcddfec1c6a066a671e94391d7c4ce4f4c02c0cf48f9f6ea0d36660f  ksirk-23.08.4.tar.xz
"
